package uno.linze.interview_question.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 问题与标签的多对多关联表
 * @TableName question_tag_relation
 */
@TableName(value ="question_tag_relation")
@Data
public class QuestionTagRelation {
    /**
     * 关联表唯一ID，主键，自增
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 关联到question表的题目ID
     */
    private Integer questionId;

    /**
     * 关联到question_tag表的标签ID
     */
    private Integer tagId;
}